package com.pf.dto.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 用户新增
 *
 * @author PanFei
 * @version 1.0.0
 * @createTime 2021/8/27
 */
@Data
public class UserAddReq {
    /**
     * 用户账号
     */
    @NotBlank(message = "参数【userAccount】不能为空")
    @Length(min = 2, max = 64, message = "参数【userAccount】长度介于2-64")
    private String userAccount;

    /**
     * 用户密码
     */
    @NotBlank(message = "参数【userPwd】不能为空")
    @Length(min = 2, max = 64, message = "参数【userPwd】长度介于2-64")
    private String userPwd;

    /**
     * 用户名称
     */
    @Length(max = 128, message = "参数【userName】最大长度128")
    private String userName;

}
